package com.ww.editsms.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class SMS implements Parcelable {

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(this.id);
		dest.writeLong(this.threadId);
		dest.writeString(this.body);
		dest.writeString(this.phoneNum);
		dest.writeString(this.time);
		dest.writeInt(this.type);
		dest.writeInt(this.operateType);
	}

	public static final Parcelable.Creator<SMS> CREATOR = new Creator<SMS>() {
		@Override
		public SMS[] newArray(int size) {
			return new SMS[size];
		}

		@Override
		public SMS createFromParcel(Parcel source) {
			SMS sms = new SMS();
			sms.id = source.readLong();
			sms.threadId = source.readLong();
			sms.body = source.readString();
			sms.phoneNum = source.readString();
			sms.time = source.readString();
			sms.type = source.readInt();
			sms.operateType = source.readInt();
			return sms;
		}
	};

	public SMS() {
		super();
		// TODO Auto-generated constructor stub
	}

	public SMS(long id, long threadId, String body, String phoneNum,
			String time, int type, int operateType) {
		super();
		this.id = id;
		this.threadId = threadId;
		this.body = body;
		this.phoneNum = phoneNum;
		this.time = time;
		this.type = type;
		this.operateType = operateType;
	}

	private long id;
	private long threadId;
	private String body;
	private String phoneNum;
	private String time;
	private int type;
	public int operateType;
	public int filter;

	public long getThreadId() {
		return threadId;
	}

	public void setThreadId(long threadId) {
		this.threadId = threadId;
	}

	public int getFilter() {
		return filter;
	}

	public void setFilter(int filter) {
		this.filter = filter;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getOperateType() {
		return operateType;
	}

	public void setOperateType(int operateType) {
		this.operateType = operateType;
	}

}
